class TakeMedicanEntity {
  List<TakeMedicanInfo>? rows;

  TakeMedicanEntity({
    this.rows,
  });

  factory TakeMedicanEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['rows'] as List?;
    List<TakeMedicanInfo> protocolList =
        (originList??[]).map((value) => TakeMedicanInfo.fromJson(value)).toList();
    return TakeMedicanEntity(
      rows: protocolList,
    );
  }
}

class TakeMedicanInfo {
  String? customerElderName;
  String? medicineName;
  String? bedNo;
  int? id;
  String? takeUnitDesc;
  num? takeCount;
  String? useTypeDesc;
  bool isSelected = true;

  TakeMedicanInfo({
    this.customerElderName,
    this.medicineName,
    this.bedNo,
    this.id,
    this.takeUnitDesc,
    this.useTypeDesc,
    this.takeCount,
    this.isSelected = true,
  });

  TakeMedicanInfo.fromJson(Map data) {
    customerElderName = data['customerElderName'];
    medicineName = data['medicineName'];
    bedNo = data['bedNo'];
    id = data['id'];
    takeUnitDesc = data['takeUnitDesc'];
    useTypeDesc = data['useTypeDesc'];
    takeCount = data['takeCount'];
  }
}


